<?php 

	$shujuku = include './db.php';
if ($_POST) {
	$id = $_GET['id'];
	$date = $_POST;
	$date['create_time']=time();
	$shujuku = include './db.php';

	$shujuku[$id]=$date;

	$str = var_export($shujuku,ture);  //不懂

	$str = "<?php return ".$str." ?>";

	file_put_contents('./db.php', $str);

	header("location:./index.php");


}else{

	$newC = $_GET['id'];
	$row = $shujuku[$newC];
	include './Tpl/xiugai.html';
}



// var_dump($row);






 ?>